package dao.v2;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import model.GoodLimitVO;
import model.PromotionGoodVO;
import model.PromotionItemVO;
import model.PromotionVO;
import model.UorderGoodVO;
import model.UorderSaleVO;

public interface PromotionVOMapper {

	PromotionGoodVO getListByGood(String good_id);

	List<PromotionVO> getAllPromotionByProGoodId(@Param("actIds")List<String> actIds,@Param("level")String level);

	PromotionVO getPromotionById(String promotion_id);

	void addOrderDiscount(@Param("order_good_id")String order_good_id, @Param("sale_id")String sale_id, @Param("sale_type")String sale_type);

	List<PromotionItemVO> selectPromotionItemList(String promotion_id);

	String getCartPromotionGoodsCash(@Param("promotion_id")String promotion_id, @Param("member_id")String member_id);

	List<PromotionItemVO> getPromotionItemList1(String promotion_id);

	String getCartPromotionCount(@Param("promotion_id")String promotion_id, @Param("member_id")String member_id);

	String getMaxLevel(String promotion_id);

	List<PromotionVO> selectPromotionList(String good_id);

	String getCartPromotionGoodsCash1(@Param("promotion_id")String promotion_id, @Param("member_id")String member_id);

	String getCartPromotionCount1(@Param("promotion_id")String promotion_id, @Param("member_id")String member_id);

	List<PromotionVO> promtionListById(String member_id);

	List<GoodLimitVO> getGoodLimitList();

	void updActivePriceAndState(@Param("good_id")String good_id,@Param("sale_price")String sale_price);

	int resetActivePriceAndState(@Param("good_id")String good_id,@Param("sale_price")String sale_price);

	void deleteLimit(String good_id);
	
	void deleteCat_good_conn(@Param("good_id")String good_id, @Param("limited_ing")String limited_ing);

	void updateCat_good_conn(@Param("good_id")String good_id, @Param("limited_notStart")String limited_notStart, @Param("limited_ing")String limited_ing);

	void updateExpireGoodLimit();


}
